<td>
    <div class="rank">
        <span><%= sort%></span>
        <div data-roomtypeid=<%=roomTypeId%>>
            <% var isStart = sort === 1 %>
            <% var isEnd = sort === peers%>

            <% if(isStart && isEnd){ %>
                <!--有且只有一个-->
                <span class="goUp" style="visibility:hidden;"></span>
                <span class="goDown" style="visibility: hidden;"></span>
            <% } else if(isStart && !isEnd){%>
                <!--有多个,位于首个-->
                <span class="goUp" style="visibility:hidden;"></span>
                <span class="goDown"></span>
            <% } else if(!isStart && !isEnd) {%>
                <span class="goUp"></span>
                <span class="goDown"></span>
            <% } else if(!isStart && isEnd) {%>
                <span class="goUp"></span>
                <span class="goDown" style="visibility:hidden;"></span>
            <% } %>
        </div>
    </div>
</td>
<td>
    <div class="roomType">
        <%= roomTypeName.length > 10 ? roomTypeName.substring(0,10) + '...' : roomTypeName%>
    </div>
</td>
<td>
    <div class="defaultPrice">
        <span>￥</span><span><%= defaultPrice.attributes.initPrice %></span>
    </div>
</td>
<td>
    <% var str = '';%>
    <% _.each(roomModels.models, function(roomModel){%>
    <%    str += roomModel.attributes.roomNumber + ' / '; %>
    <% }); %>
    <% str = str.substring(0, str.length - 2)%>

    <div class="roomNums">
        <%= str%>
    </div>
</td>
<td>
    <div class="notes">
        <span>
            <%= roomTypeNotes%>
        </span>
        <!--<span data-roomtypeid=<%=roomTypeId%>>-->
            <!--<a href="javascript:void(0)">修改备注</a>-->
        <!--</span>-->
    </div>
</td>
<td>
    <div class="operation">
        <span data-roomtypeid=<%=roomTypeId%>><a href="javascript:void(0)">修改</a></span>
        <span data-roomtypeid=<%=roomTypeId%>><a href="javascript:void(0)">删除</a></span>
    </div>
</td>